home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Garbo
/
Garbo.cdr
/
mac
/
hypercrd
/
hc2_x
/
untcnvrs.sit
/
Unit Conversion
/
card_5557.txt
< prev
next >
Wrap
Text File
|
1990-11-02
|
9KB
|
355 lines
-- card: 5557 from stack: in
-- bmap block id: 6652
-- flags: 0000
-- background id: 3044
-- name: Area
----- HyperTalk script -----
on closeCard
put empty into background field "toconvert"
put empty into background field "answer"
end closeCard
-- part 14 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=282 top=55 right=82 bottom=474
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Cm to Inches (Squared)
----- HyperTalk script -----
on mouseUp
set numberformat to 0.000
put empty into background field "answer"
get first word of background field "toconvert"
put it into temp
if temp is "-" then
get second word of background field "toconvert"
divide it by -1
put it into temp
end if
put empty into background field "toconvert"
if temp is empty then
put temp && "0 Sq. Centimeters" into background field "toconvert"
else
put temp && " Sq. Centimeter" into background field "toconvert"
end if
multiply temp by 0.1550
put temp && " Sq. Inches" into background field "answer"
put empty into temp
end mouseUp
-- part 15 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=282 top=87 right=114 bottom=474
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Inches to Cm (Squared)
----- HyperTalk script -----
on mouseUp
set numberformat to 0.000
put empty into background field "answer"
get first word of background field "toconvert"
put it into temp
if temp is "-" then
get second word of background field "toconvert"
divide it by -1
put it into temp
end if
put empty into background field "toconvert"
if temp is empty then
put temp && "0 Sq. Inches" into background field "toconvert"
else
put temp && " Sq. Inches" into background field "toconvert"
end if
divide temp by 0.1550
put temp && " Sq. Centimeters" into background field "answer"
put empty into temp
end mouseUp
-- part 16 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=282 top=122 right=149 bottom=474
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Meters to Feet (Squared)
----- HyperTalk script -----
on mouseUp
set numberformat to 0.000
put empty into background field "answer"
get first word of background field "toconvert"
put it into temp
if temp is "-" then
get second word of background field "toconvert"
divide it by -1
put it into temp
end if
put empty into background field "toconvert"
if temp is empty then
put temp && "0 Sq. Meters" into background field "toconvert"
else
put temp && " Sq. Meters" into background field "toconvert"
end if
multiply temp by 10.764
put temp && " Sq. Feet" into background field "answer"
put empty into temp
end mouseUp
-- part 17 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=282 top=154 right=181 bottom=474
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Feet to Meters (Squared)
----- HyperTalk script -----
on mouseUp
set numberformat to 0.000
put empty into background field "answer"
get first word of background field "toconvert"
put it into temp
if temp is "-" then
get second word of background field "toconvert"
divide it by -1
put it into temp
end if
put empty into background field "toconvert"
if temp is empty then
put temp && "0 Sq. Feet" into background field "toconvert"
else
put temp && " Sq. Feet" into background field "toconvert"
end if
divide temp by 10.764
put temp && " Sq. Meters" into background field "answer"
put empty into temp
end mouseUp
-- part 18 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=282 top=188 right=215 bottom=474
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Meters to Yards (Squared)
----- HyperTalk script -----
on mouseUp
set numberformat to 0.000
put empty into background field "answer"
get first word of background field "toconvert"
put it into temp
if temp is "-" then
get second word of background field "toconvert"
divide it by -1
put it into temp
end if
put empty into background field "toconvert"
if temp is empty then
put temp && "0 Sq. Meters" into background field "toconvert"
else
put temp && " Sq. Meters" into background field "toconvert"
end if
multiply temp by 1.196
put temp && " Sq. Yards" into background field "answer"
put empty into temp
end mouseUp
-- part 19 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=282 top=222 right=249 bottom=474
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Yards to Meters (Squared)
----- HyperTalk script -----
on mouseUp
set numberformat to 0.000
put empty into background field "answer"
get first word of background field "toconvert"
put it into temp
if temp is "-" then
get second word of background field "toconvert"
divide it by -1
put it into temp
end if
put empty into background field "toconvert"
if temp is empty then
put temp && "0 Sq. Yards" into background field "toconvert"
else
put temp && " Sq. Yards" into background field "toconvert"
end if
divide temp by 1.196
put temp && " Sq. Meters" into background field "answer"
put empty into temp
end mouseUp
-- part 24 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=283 top=290 right=317 bottom=474
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: More Conversions
----- HyperTalk script -----
on mouseUp
get background field "toconvert"
visual effect wipe right slowly
go to card "Area2"
put it into background field "toconvert"
end mouseUp
-- part 30 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=75 top=288 right=305 bottom=134
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Distance
----- HyperTalk script -----
on mouseUp
visual effect zoom open
go to card Distance
end mouseUp
-- part 28 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=283 top=259 right=286 bottom=474
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Additional Notes
----- HyperTalk script -----
on mouseUp
visual effect zoom open
go to card addinfo
end mouseUp
-- part 33 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=135 top=288 right=305 bottom=194
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Volume
----- HyperTalk script -----
on mouseUp
visual effect zoom open
go to card Volume
end mouseUp
-- part 31 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=75 top=306 right=323 bottom=134
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Temperature
----- HyperTalk script -----
on mouseUp
visual effect zoom open
go to card weight
end mouseUp
-- part 36 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=135 top=306 right=323 bottom=194
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Temperature
----- HyperTalk script -----
on mouseUp
visual effect zoom open
go to card temperature
end mouseUp
-- part contents for background part 7
----- text -----
Area
Conversions